package com.xgit.iov.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xgit.iov.common.core.entity.SysTenant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 租户Mapper接口
 *
 * @author william
 * @date 2020-07-04
 */

@Mapper
public interface SysTenantMapper extends BaseMapper<SysTenant> {
    /**
     * 查询租户
     *
     * @param id 租户ID
     * @return 租户
     */
     SysTenant selectSysTenantById(Long id);

    /**
     * 查询租户列表
     *
     * @param sysTenant 租户
     * @return 租户集合
     */
    IPage<List<SysTenant>> selectSysTenantPage(Page page, @Param("ew") SysTenant sysTenant);

}
